package com.ruifu.pls.entity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * BasSkuSupplier entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "BAS_SKU_SUPPLIER")
@IdClass(BasSkuSupplierId.class)
public class BasSkuSupplier implements java.io.Serializable {

	// Fields

    private String customerid;
    private String sku;
    private String supplierid;
	private BasSkuSupplierId id;
	private String activeFlag;
	private Double price;
	private Double priceTax;
	private BigDecimal priority;
	private String userdefine1;
	private String userdefine2;
	private String userdefine3;
	private String userdefine4;
	private String userdefine5;
	private Double userdefine6;
	private Double userdefine7;
	private Double userdefine8;
	private String notes;
	private Date addtime;
	private String addwho;
	private Date edittime;
	private String editwho;
	private String packid;
	private String userdefine9;
	private String userdefine10;

	// Constructors

	/** default constructor */
	public BasSkuSupplier() {
	}

	/** minimal constructor */
	public BasSkuSupplier(BasSkuSupplierId id, String activeFlag) {
		this.id = id;
		this.activeFlag = activeFlag;
	}

	/** full constructor */
	public BasSkuSupplier(BasSkuSupplierId id, String activeFlag, Double price,
			Double priceTax, BigDecimal priority, String userdefine1,
			String userdefine2, String userdefine3, String userdefine4,
			String userdefine5, Double userdefine6, Double userdefine7,
			Double userdefine8, String notes, Date addtime, String addwho,
			Date edittime, String editwho, String packid, String userdefine9,
			String userdefine10) {
		this.id = id;
		this.activeFlag = activeFlag;
		this.price = price;
		this.priceTax = priceTax;
		this.priority = priority;
		this.userdefine1 = userdefine1;
		this.userdefine2 = userdefine2;
		this.userdefine3 = userdefine3;
		this.userdefine4 = userdefine4;
		this.userdefine5 = userdefine5;
		this.userdefine6 = userdefine6;
		this.userdefine7 = userdefine7;
		this.userdefine8 = userdefine8;
		this.notes = notes;
		this.addtime = addtime;
		this.addwho = addwho;
		this.edittime = edittime;
		this.editwho = editwho;
		this.packid = packid;
		this.userdefine9 = userdefine9;
		this.userdefine10 = userdefine10;
	}

	// Property accessors
    @Id
    @Column(name = "CUSTOMERID", nullable = false, length = 15)
    public String getCustomerid() {
        return this.customerid;
    }

    public void setCustomerid(String customerid) {
        this.customerid = customerid;
    }

    @Id
    @Column(name = "SKU", nullable = false, length = 50)
    public String getSku() {
        return this.sku;
    }

    public void setSku(String sku) {
        this.sku = sku;
    }

    @Id
    @Column(name = "SUPPLIERID", nullable = false, length = 15)
    public String getSupplierid() {
        return this.supplierid;
    }

    public void setSupplierid(String supplierid) {
        this.supplierid = supplierid;
    }

	@Column(name = "ACTIVE_FLAG", nullable = false, length = 1)
	public String getActiveFlag() {
		return this.activeFlag;
	}

	public void setActiveFlag(String activeFlag) {
		this.activeFlag = activeFlag;
	}

	@Column(name = "PRICE", precision = 18, scale = 8)
	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	@Column(name = "PRICE_TAX", precision = 18, scale = 8)
	public Double getPriceTax() {
		return this.priceTax;
	}

	public void setPriceTax(Double priceTax) {
		this.priceTax = priceTax;
	}

	@Column(name = "PRIORITY", precision = 22, scale = 0)
	public BigDecimal getPriority() {
		return this.priority;
	}

	public void setPriority(BigDecimal priority) {
		this.priority = priority;
	}

	@Column(name = "USERDEFINE1", length = 400)
	public String getUserdefine1() {
		return this.userdefine1;
	}

	public void setUserdefine1(String userdefine1) {
		this.userdefine1 = userdefine1;
	}

	@Column(name = "USERDEFINE2", length = 400)
	public String getUserdefine2() {
		return this.userdefine2;
	}

	public void setUserdefine2(String userdefine2) {
		this.userdefine2 = userdefine2;
	}

	@Column(name = "USERDEFINE3", length = 400)
	public String getUserdefine3() {
		return this.userdefine3;
	}

	public void setUserdefine3(String userdefine3) {
		this.userdefine3 = userdefine3;
	}

	@Column(name = "USERDEFINE4", length = 400)
	public String getUserdefine4() {
		return this.userdefine4;
	}

	public void setUserdefine4(String userdefine4) {
		this.userdefine4 = userdefine4;
	}

	@Column(name = "USERDEFINE5", length = 400)
	public String getUserdefine5() {
		return this.userdefine5;
	}

	public void setUserdefine5(String userdefine5) {
		this.userdefine5 = userdefine5;
	}

	@Column(name = "USERDEFINE6", precision = 18, scale = 8)
	public Double getUserdefine6() {
		return this.userdefine6;
	}

	public void setUserdefine6(Double userdefine6) {
		this.userdefine6 = userdefine6;
	}

	@Column(name = "USERDEFINE7", precision = 18, scale = 8)
	public Double getUserdefine7() {
		return this.userdefine7;
	}

	public void setUserdefine7(Double userdefine7) {
		this.userdefine7 = userdefine7;
	}

	@Column(name = "USERDEFINE8", precision = 18, scale = 8)
	public Double getUserdefine8() {
		return this.userdefine8;
	}

	public void setUserdefine8(Double userdefine8) {
		this.userdefine8 = userdefine8;
	}

	@Column(name = "NOTES", length = 2000)
	public String getNotes() {
		return this.notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "ADDTIME", length = 7)
	public Date getAddtime() {
		return this.addtime;
	}

	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	@Column(name = "ADDWHO", length = 35)
	public String getAddwho() {
		return this.addwho;
	}

	public void setAddwho(String addwho) {
		this.addwho = addwho;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "EDITTIME", length = 7)
	public Date getEdittime() {
		return this.edittime;
	}

	public void setEdittime(Date edittime) {
		this.edittime = edittime;
	}

	@Column(name = "EDITWHO", length = 35)
	public String getEditwho() {
		return this.editwho;
	}

	public void setEditwho(String editwho) {
		this.editwho = editwho;
	}

	@Column(name = "PACKID", length = 40)
	public String getPackid() {
		return this.packid;
	}

	public void setPackid(String packid) {
		this.packid = packid;
	}

	@Column(name = "USERDEFINE9", length = 50)
	public String getUserdefine9() {
		return this.userdefine9;
	}

	public void setUserdefine9(String userdefine9) {
		this.userdefine9 = userdefine9;
	}

	@Column(name = "USERDEFINE10", length = 50)
	public String getUserdefine10() {
		return this.userdefine10;
	}

	public void setUserdefine10(String userdefine10) {
		this.userdefine10 = userdefine10;
	}

}